Repository navigation
fix(WO20): close the parse-parity harness residual (412/435 -> 435/435, #285) - #291
Merged
Merged
Conversation
#285) The audit baseline's 826 divergence rows (item-kind 678, constraints 144, item-value 4) were all canonical-projection artifacts, not parser bugs. State each class's shared lowering in the harness normalizer: - constraints: project BOTH parsers onto the fixed before/after/ not_before/not_after kind order (written order between simultaneous lookarounds carries no semantics; py's SubRule model stores four named fields). One-sided kinds, duplicated kinds, and value differences still diverge. - none to "": both runtimes lower identically (ts converter.ts case "none" -> StringItem(""); py actions.py "converter parity"). - any_character -> stdlib alias: both runtimes compile it through the alias path (ts converter.ts keeps the alias path, re: "."; py AliasItem + ALIAS_COMPILED re: "."). Gates: harness 435/435 zero kinds; py-vs-py driver canonical 432/435 and raw 432/435 (hand rev 7a84260, unchanged); py rs-golden zero-delta; ts parse-all 428/428 + end-to-end green. No .parg edits, no parser or model changes. Section D added to docs/parity/README.md with the rules and their code citations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the WO20 order-of-attack on #285: all three documented divergence kinds resolved; harness now 435/435, zero divergence kinds (baseline 412/435; 826 rows).
Per-kind outcome
alalc-ell-Grek-Latn-2010only. Not a wrong value on either side: the rule writesafter "Ν" before "Κ", ts preserves written order, while the py SubRule model stores the four constraint kinds as named fields, so positionally compared rows swapped both kinds and values. Resolved by the constraints rule below.orderConstraintsnow projects BOTH parsers onto the fixedbefore/after/not_before/not_afterorder (stable within a kind). One-sided kinds, duplicated kinds (ts keeps every copy, py keeps the last), and value differences still diverge — none exist in the corpus (checked; the 286 ordering rows hid none).nonevs""— both runtimes lowernoneto the empty string at their compile layers (tsconverter.tscase "none"→StringItem(""),compile-item.tsnone: {re:"",literal:""}; pyactions.py"converter parity"). Canonical form is the shared lowering; py cannot representnonedistinctly.any_characterfn-vs-alias — tsactions.tslowers theany_charliteral to a function atom, py toAliasItem; both compile through the stdlib-alias path withre: "."(tsconverter.tskeeps the alias path; pyitems.pyALIAS_COMPILED). Canonical form is the shared lowering.Residual: none. No
.pargedits; no parser or model changes; every rule is stated in-code and in new §D ofdocs/parity/README.mdwith file:line citations so a future reader can re-derive it.Gates
--hand-rev 7a84260): canonical 432/435, raw 432/435 — unchanged, gate held.GOLDEN_ROOT=~/src/interscript): 1 passed, zero-delta.parse-all-isc428/428,end-to-end.test.tsgreen.No interscript-ruby (py normalizer) change was required — the entire residual lived in the canonical projection, which the py-vs-py driver already shared.
Test plan
node scripts/parse-parity.mjs --ts-root <ts> --py-root <ruby>→ 435/435, zero kindspython scripts/parse_parity_py.py --hand-rev 7a84260→ canonical 432/435, raw 432/435pytest interscript-py/tests/test_golden_capture.py→ 1 passed